﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NursingFormSystem.Common
{
    public class StringHelper
    {
        //处理字符串中出现的\r\n,空字符串等
        public static string strReplace(string oldString)
        {
            string rt = "";
            if(!string.IsNullOrEmpty(oldString)){
                string result = oldString.Replace("\n", "");
                result = result.Replace("\r\n", "");
                result = result.Replace("\r", "");
                rt = result.Trim();
            }
            return rt;
        }
    }
}
